<%@ taglib prefix="fm" uri="http://www.springframework.org/tags/form" %>
<%--
  Created by IntelliJ IDEA.
  User: Root404
  Date: 2023/10/27
  Time: 13:56
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <style>
        .red{
            color: red;
            font-size: 33px;
        }
    </style>
</head>
<body>
增加//ModelAttribute
<fm:form method="get" modelAttribute="entry" action="${pageContext.request.contextPath}/addby">
    <fm:errors path="title" cssClass="red"></fm:errors>
    <fm:input path="title"></fm:input>
    <fm:errors path="categoryId" cssClass="red"></fm:errors>
    <fm:input path="categoryId"></fm:input>
    <input type="submit" value="提交">
</fm:form>
${t}
</body>
</html>
